<template>
  <div class="header">
    <p class="logoArea">
      <router-link to="" class="logo" title="小米官网">
        <img src="./images/logo.png" alt="首页" />
      </router-link>
    </p>
    <p class="text">我的购物车</p>
    <p class="tip">温馨提示:产品是否购买成功,以最终下单为准哦,请尽快结算</p>

    <div class="right">
      <router-link class="a" to="/login">登陆</router-link>
      <router-link class="a" to="">注册</router-link>
    </div>
    <!-- <div class="right-div">
      <a href="" @mouseenter="show" @mouseleave="show">xxxx</a>
      <ul v-show="isShow">
        <li>
          <a href="#">个人中心</a>
        </li>
        <li>
          <a href="#">评价晒单</a>
        </li>
        <li>
          <a href="#">我的喜欢</a>
        </li>
        <li>
          <a href="#">小米账户</a>
        </li>
        <li>
          <a href="#">退出登陆</a>
        </li>
      </ul>
    </div>-->
  </div>
</template>

<script>
export default {
  name: "ShopcartHeader",
  data() {
    return {
      isShow: false,
    };
  },
  methods: {
    show() {
      this.isShow = !this.isShow;
    },
  },
};
</script>

<style lang="less" scoped>
.header {
  height: 100px;
  line-height: 30px;
  background: #fff;
  color: #b0b0b0;
  border-bottom: 2px solid #ff6700;
}
.logoArea {
  float: left;
  margin-top: 20px;
  margin-left: 62px;
  .logo {
    float: left;
    img {
      display: flex;
      width: 48px;
      background-repeat: no-repeat;
      text-align: center;
      margin-top: 5px;
    }
  }
}
.text {
  float: left;
  margin: 25px;
  color: #424242;
  line-height: 48px;
  margin-bottom: 0;
  font-size: 28px;
}
.tip {
  float: left;
  height: 20px;
  line-height: 6;
  margin-top: 20px;
  margin-left: 15px;
  color: #757575;
}

.right {
  float: right;
  margin-top: 40px;

  .a {
    padding: 0 10px;
    font-size: 14px;

    & + a {
      border-left: 1px solid #b3aeae;
    }
  }
}
a:hover {
  color: #ff6700;
}
.right-div {
  position: relative;
  float: right;
  height: 40px;
  width: 194px;
  line-height: 40px;
  background: #ff6700;
  color: #b0b0b0;
  font-size: 12px;
  margin-top: 30px;
}
.myorder {
  width: 70px;
  padding: 0 5px;
  text-align: center;
  float: left;
}
</style>
